#pragma once

//---------------------------------------------------------------------------
struct CTRL_LIST{
	wstring StrCtrlKey;
	int		nID;
};

#define ARRAY_SIZE(AY)    ( sizeof(AY)/sizeof(AY[0]) )


//-----------  Common define --------------------------------------------------

#define TIMERID_1_SECOND			1
#define TIMERID_1_ELAPSE			2000	

#define TIMERID_PAUSE_COUNT_DOWN	10




#define TIMERID_2_REFLESHONE     2

#define TIMERID_3_ONPAUSE		 3

//---------------------------------------------------------------------------

#define MSGBASE   APP_MSG_BASE


//WorkOut
#define MSGWORKOUTCON   (APP_MSG_BASE+100)

//top
#define CMD_WORKOUT_PAUSE		     (MSGWORKOUTCON + 0)
#define CMD_WORKOUT_CONTINUE		 (MSGWORKOUTCON + 1)
#define CMD_WORKOUT_END				 (MSGWORKOUTCON + 3)

#define CMD_WORKOUT_ICO_TIME		 (MSGWORKOUTCON + 11)
#define CMD_WORKOUT_INTVTIME		 (MSGWORKOUTCON + 12)
#define CMD_WORKOUT_ICO_HEART		 (MSGWORKOUTCON + 13)
#define CMD_WORKOUT_HEARTRATE		 (MSGWORKOUTCON + 14)

//MID
#define CMD_WORKOUT_PIC_VIDEO					(MSGWORKOUTCON + 15)
#define CMD_WORKOUT_ICO_ADDSUBBK				(MSGWORKOUTCON + 16)
#define CMD_WORKOUT_ADDSUBNUM					(MSGWORKOUTCON + 17)
#define CMD_WORKOUT_BTNWORKOUT					(MSGWORKOUTCON + 18)
#define CMD_WORKOUT_THISCOUNT					(MSGWORKOUTCON + 19)
#define CMD_WORKOUT_LASTCOUNT					(MSGWORKOUTCON + 20)
#define CMD_WORKOUT_TOTALCOUNT					(MSGWORKOUTCON + 21)

#define CMD_WORKOUT_BTNADD					(MSGWORKOUTCON + 22)
#define CMD_WORKOUT_BTNSUB					(MSGWORKOUTCON + 23)
#define CMD_WORKOUT_TOTALTIME					(MSGWORKOUTCON + 24)

//<!-- Bottom Num  -->

#define CMD_WORKOUT_CALORIES_NUM					(MSGWORKOUTCON + 30)
#define CMD_WORKOUT_DISTANCE_TMNUM					(MSGWORKOUTCON + 31)
#define CMD_WORKOUT_WATTS_NUM						(MSGWORKOUTCON + 32)
#define CMD_WORKOUT_METS_TMNUM						(MSGWORKOUTCON + 33)
#define CMD_WORKOUT_SPEED_NUM						(MSGWORKOUTCON + 34)
#define CMD_WORKOUT_RPM_NUM							(MSGWORKOUTCON + 35)


//<  TXT Ctrl >
#define CMD_WORKOUT_TEXT							(MSGWORKOUTCON + 40)
#define CMD_WORKOUT_EXERCSE							(MSGWORKOUTCON + 41)

#define CMD_WORKOUT_PROGRESS1						(MSGWORKOUTCON + 45)
#define CMD_WORKOUT_PROGRESS20						(MSGWORKOUTCON + 46)

#define CMD_WORKOUT_UNIT_SPD						(MSGWORKOUTCON + 47)
#define CMD_WORKOUT_UNIT_HRT						(MSGWORKOUTCON + 48)
#define CMD_WORKOUT_UNIT_DIS						(MSGWORKOUTCON + 49)

//--------------------------------------------------------------------------------------
//workout start ani
#define CMD_STARTANI_TXTBEGIN						(MSGWORKOUTCON + 80)
#define CMD_STARTANI_TXTMSG							(MSGWORKOUTCON + 81)

#define CMD_STARTANI_ANI1							(MSGWORKOUTCON + 82)
#define CMD_STARTANI_ANI2							(MSGWORKOUTCON + 83)
#define CMD_STARTANI_ANI3							(MSGWORKOUTCON + 84)
#define CMD_STARTANI_ANIGO							(MSGWORKOUTCON + 85)
#define CMD_STARTANI_ANISTART						(MSGWORKOUTCON + 86)

//--------------------------------------------------------------------------------------
//--------------------------------------------------------------------------------------

//workMode 

#define MSG_WORKMODE				(APP_MSG_BASE+200)
#define CMD_WORKMODE_MANUAL					(MSG_WORKMODE+1)
#define CMD_WORKMODE_PYRAMID				(MSG_WORKMODE+2)
#define CMD_WORKMODE_HILLCLIMB				(MSG_WORKMODE+3)
#define CMD_WORKMODE_INTERVAL				(MSG_WORKMODE+4)
#define CMD_WORKMODE_RANDOM					(MSG_WORKMODE+5)
#define CMD_WORKMODE_CONSTANTWATTS			(MSG_WORKMODE+6)
#define CMD_WORKMODE_CANCEL					(MSG_WORKMODE+7)

//--------------------------------------------------------------------------------------
//WorkOut pause
#define MSG_WORKMODE					(APP_MSG_BASE+220)
#define CMD_WORKOUT_PAUSE_ALPHABK		(MSG_WORKMODE+0)	
#define CMD_WORKOUT_PAUSE_BK			(MSG_WORKMODE+1)	
#define CMD_WORKOUT_PAUSE_TIME			(MSG_WORKMODE+2)
#define CMD_WORKOUT_PAUSE_TITLE			(MSG_WORKMODE+3)
#define CMD_WORKOUT_PAUSE_MSG			(MSG_WORKMODE+4)


//--------------------------------------------------------------------------------------
#define MSG_SAMMARY					(APP_MSG_BASE+260)
#define CMD_SAMMARY_HOME				(MSG_SAMMARY+1)
#define CMD_SAMMARY_SAVE				(MSG_SAMMARY+2)	
#define CMD_SAMMARY_TITLE				(MSG_SAMMARY+3)	

#define CMD_SAMMARY_TITLE_LEFT			(MSG_SAMMARY+4)	
#define CMD_SAMMARY_TITLE_RIGHT			(MSG_SAMMARY+5)	

#define CMD_SAMMARY_LISTROW1			(MSG_SAMMARY+6)	
#define CMD_SAMMARY_LISTROW2			(MSG_SAMMARY+7)	
#define CMD_SAMMARY_LISTROW3			(MSG_SAMMARY+7)	


//--------------------------------------------------------------------------------------
#define CMD_MSGBOX_SAVE					(APP_MSG_BASE+300)
#define CMD_SAVEMSG_ICO					(CMD_MSGBOX_SAVE+1)	
#define CMD_SAVEMSG_BTN_CANCEL			(CMD_MSGBOX_SAVE+2)	
#define CMD_SAVEMSG_TXT_TITLE			(CMD_MSGBOX_SAVE+3)	
#define CMD_SAVEMSG_TXT_TIP				(CMD_MSGBOX_SAVE+4)	
#define CMD_SAVEMSG_TXT_MSG				(CMD_MSGBOX_SAVE+5)	
#define CMD_SAVEMSG_PROGRESS			(CMD_MSGBOX_SAVE+6)	



//--------------------------------------------------------------------------------------




//Setting
#define SETTING  MSGBASE+200
